package com.michau.testitas.core.dao.hibernate;

import com.michau.testitas.common.model.answer.Answer;
import com.michau.testitas.core.dao.api.AnswerDao;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collection;
import java.util.Set;

/**
 * User: michau
 * Date: 4/7/13
 * Time: 7:12 PM
 */
public class AnswerDaoHibernate extends GenericDaoHibernate<Answer, Long> implements AnswerDao{

    public AnswerDaoHibernate(){
        super(Answer.class);
    }

    @Override
    public void createOrUpdate(Answer answer) {
        getSession().saveOrUpdate(answer);
    }
}
